# 这是一道模拟题
# 目前 30%

def resolution1():
    result_11 = []
    result_21 = []
    line = ""
    score_A_11 = 0
    score_B_11 = 0
    score_A_21 = 0
    score_B_21 = 0
    end = False
    while line.find('E') == -1:
        line = input()
        for i in line:
            # 计算分数
            if i == 'W':
                score_A_11 += 1
                score_A_21 += 1
            elif i == 'L':
                score_B_11 += 1
                score_B_21 += 1
            elif i == 'E':
                # 直接结算11分制：
                res = f"{score_A_11}:{score_B_11}"
                result_11.append(res)
                # 直接结算21分制：
                res = f"{score_A_21}:{score_B_21}"
                result_21.append(res)
                # 直接结束
                end = True
                break
            # 按分制结算比赛结果
            if score_A_11 == 11 or score_B_11 == 11:
                res = f"{score_A_11}:{score_B_11}"
                result_11.append(res)
                score_A_11 = 0
                score_B_11 = 0
            elif score_A_21 == 21 or score_B_21 == 21:
                res = f"{score_A_21}:{score_B_21}"
                result_21.append(res)
                score_A_21 = 0
                score_B_21 = 0
        if end:
            break
    # 输出比赛结果
    for res in result_11:
        print(res)
    print()
    for res in result_21:
        print(res)


if __name__ == '__main__':
    resolution1()